package com.woniuxy.yoga.evaluate.client;


import com.woniuxy.yoga.commons.core.model.Result;
import com.woniuxy.yoga.evaluate.model.dto.orderinfo.OrderInfoDto;
import com.woniuxy.yoga.evaluate.model.dto.userinfo.UserInfoDto;
import com.woniuxy.yoga.evaluate.model.form.orderinfo.UpdateEvaluateStateForm;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "user-service",path = "/user")
public interface UserClient {


    /**
     * 根据id查询用户信息
     * @param userId 用户id
     * @return 用户信息对象
     */
    @GetMapping("/userInfo/getByUserId/{userId}")
    public Result<UserInfoDto> getByUserId(@PathVariable("userId") Integer userId);
}
